package it.apiconsulting.sharem.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="t_login")
public class Login implements Serializable{
	
	private static final long serialVersionUID = -8767337896773261247L;
	
    private Long id;
    private Long idUser;
    private String username;
    private String timeLogin;
    private String timeLogout;

	@Id
	@GeneratedValue
	@Column(name="id")
	public Long getId() {
		return id;
	}

	@Column(name="id_user")
	public Long getIdUser() {
		return idUser;
	}

	@Column(name="username")
	public String getUsername() {
		return username;
	}
	
	@Column(name="time_login")
	public String getTimeLogin() {
		return timeLogin;
	}
	
	@Column(name="time_logout")
	public String getTimeLogout() {
		return timeLogout;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setIdUser(Long idUser) {
		this.idUser = idUser;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setTimeLogin(String timeLogin) {
		this.timeLogin = timeLogin;
	}

	public void setTimeLogout(String timeLogout) {
		this.timeLogout = timeLogout;
	}
	
}